<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>个人中心 - 仿站电商平台</title>
    <link rel="stylesheet" href="../css/common.css">
    <style>
        body {
            background-color: #f5f5f5;
            margin: 0;
            padding: 0;
        }
        .header {
            background-color: #87CEEB;
            color: white;
            padding: 15px 0;
            text-align: center;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 60px;
        }
        .header h1 {
            margin: 0;
            font-size: 24px;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }
        .header-buttons {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            gap: 10px;
        }
        .header-btn {
            padding: 5px 15px;
            border: none;
            border-radius: 4px;
            background-color: white;
            color: #87CEEB;
            cursor: pointer;
            font-size: 14px;
            text-decoration: none;
        }
        .container {
            max-width: 800px;
            margin: 20px auto;
            padding: 20px;
            background-color: white;
            border-radius: 8px;
            border: 1px solid pink;
            box-shadow: none;
        }
        .form-group {
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .form-group label {
            width: 80px;
            text-align: right;
            margin-right: 15px;
            color: #333;
        }
        .form-group input, 
        .form-group select {
            width: 200px;
            flex: none;
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }
        .form-group input:disabled {
            background-color: #f5f5f5;
            cursor: not-allowed;
        }
        .btn-submit {
            display: block;
            width: 200px;
            margin: 30px auto;
            padding: 12px;
            background-color: #87CEEB;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            text-align: center;
        }
        .btn-submit:hover {
            background-color: #78b9d4;
        }
        /* 添加去除number类型输入框上下箭头的样式 */
        input[type="number"]::-webkit-inner-spin-button,
        input[type="number"]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        input[type="number"] {
            -moz-appearance: textfield; /* Firefox */
        }
    </style>
</head>
<body>
    <header class="header">
        <h1>个人中心</h1>
        <div class="header-buttons">
            <button onclick="location.href='./rpwd.html'" class="header-btn">修改密码</button>
            <button onclick="location.href='./index.html'" class="header-btn">回到首页</button>
        </div>
    </header>

    <div class="container">
        <form class="personal-form" id="personalForm">
            <div class="form-group">
                <label>用户名：</label>
                <input type="text" id="username" disabled>
            </div>
            <div class="form-group">
                <label>年龄：</label>
                <input type="number" 
                       id="age" 
                       min="0" 
                       max="150" 
                       onkeypress="return event.charCode >= 48 && event.charCode <= 57"
                       oninput="if(value < 0) value = 0"
                       style="-moz-appearance: textfield;">
            </div>
            <div class="form-group">
                <label>性别：</label>
                <select id="gender">
                    <option value="">请选择</option>
                    <option value="男">男</option>
                    <option value="女">女</option>
                </select>
            </div>
            <div class="form-group">
                <label>昵称：</label>
                <input type="text" id="nickname">
            </div>
            <button type="submit" class="btn-submit">确认修改</button>
        </form>
    </div>

    <script src="../lib/axios.min.js"></script>
    <script src="../js/config.js"></script>
    <script src="../js/personal.js"></script>
</body>
</html> 